package ace.cmp.spring.graphql.core.annotation;

import java.lang.annotation.*;
import org.springframework.core.annotation.AliasFor;

/**
 * @author caspar
 * @date 2023/9/26 9:42 支持特性：
 * 1、add type name prefix and suffix
 * 2、add field prefix and suffix
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SchemaExtendMapping {

  @AliasFor("fieldPrefix")
  String value() default "";

  @AliasFor("value")
  String fieldPrefix() default "";

  String fieldSuffix() default "";
}
